Communication system

ABSTRACT

A communication system includes a variable device, which is one of a management device and a terminal device, having an antenna determination unit and a transmission instruction unit. State information is information indicating a state of a housing that houses the communication system. The antenna determination unit is configured to determine a transmission antenna as an applicable antenna for a wireless communication with a target device in order to achieve a predetermined communication quality when it is determined that the state of the housing has changed based on the state information. The target device, which is the other of the management device and the terminal device, is a device with which the variable device communicates. A transmission instruction unit instructs a wireless communication device in the variable device to perform the wireless communication with the target device by using the applicable antenna.

CROSS REFERENCE TO RELATED APPLICATION

The present application is based on and claims the benefit of priority of Japanese Patent Application No. 2019-219674, filed on Dec. 4, 2019, the disclosure of which is incorporated herein by reference.

BACKGROUND INFORMATION

The present disclosure generally relates to a communication system including at least one terminal device that obtains information about a battery and at least one management device that communicates with the terminal device.

SUMMARY

It is, in one aspect, an object of the present disclosure to provide a technique for suppressing deterioration of communication quality in a communication system.

BRIEF DESCRIPTION OF THE DRAWINGS

Objects, features, and advantages of the present disclosure will become more apparent from the following detailed description made with reference to the accompanying drawings, in which:

FIG. 1 is a block diagram of a configuration of a communication system;

FIG. 2 is a schematic diagram of a configuration of the communication system;

FIG. 3 is a block diagram of a wireless communication unit in a management device of a first embodiment;

FIG. 4 is a block diagram of functions of the management device;

FIG. 5 is a block diagram of functions of a terminal device;

FIG. 6 is a flowchart of a determination process performed by a management control unit and a response process performed by a terminal control unit in the first embodiment;

FIG. 7 is a flowchart of a management process performed by the management control unit and an information transmission process performed by the terminal control unit in a first modification:

FIG. 8 is a block diagram of a wireless communicator in the terminal device of the first modification;

FIG. 9 is a flowchart of the response process performed by the management device and the determination process performed by the terminal device in the first modification;

FIG. 10 is a flowchart of the determination process performed by the management control unit and the response process performed by the terminal control unit in a second modification;

FIG. 11 is a flowchart of the response process performed by the management control unit and the determination process performed by the terminal control unit in the second modification;

FIG. 12 is a flowchart of the determination process performed by the management control unit and the response process performed by an terminal control unit in a second embodiment;

FIG. 13 is a diagram of an example of correspondence information according to the second embodiment:

FIG. 14 is a flowchart of the response process performed by the management control unit and the determination process performed by the terminal control unit in a fourth modification;

FIG. 15 is a flowchart of the determination process performed by the management control unit and the response process performed by the terminal control unit in a fifth modification;

FIG. 16 is a flowchart of the response process performed by the management control unit and the determination process performed by the terminal control unit in the fifth modification;

FIG. 17 is an explanatory diagram of an example of correspondence information in a third embodiment;

FIG. 18 is a flowchart of the response process performed by the management control unit and the determination process performed by the terminal control unit in a seventh modification;

FIG. 19 is a flowchart of the determination process performed by the management control unit and the response process performed by the terminal control unit in an eighth modification;

FIG. 20 is a flowchart of the response process performed by the management control unit and the determination process performed by the terminal control unit according to the eighth modification;

FIG. 21 is a diagram of a correspondence relationship between reception intensity and BER in other embodiments;

FIG. 22 is a diagram of an example in which a communication system performs communication using a plurality of frequency bands in the other embodiments:

FIG. 23 is a diagram of antenna directivity of plural antennas in an other embodiment; and

FIG. 24 is a diagram of antenna directivity of the plural antennas in yet other embodiment.

DETAILED DESCRIPTION

Hereinafter, exemplary embodiments of the present disclosure will be described with reference to the drawings.

First Embodiment

[1-1. Configuration]

<Overall Structure>

A configuration of a communication system 100 according to the present embodiment is described with reference to FIGS. 1 and 2. The communication system 100 is mounted on a vehicle V1. The communication system 100 includes at least one management device 2 and at least one terminal device 4. The communication system 100 may include a vehicle information unit 6.

The vehicle information unit 6 includes a plurality of in-vehicle sensors and in-vehicle devices that detect a state of the vehicle V1. More specifically, the vehicle information unit 6 may include a wheel speed sensor, an acceleration sensor, and the like. In addition, the vehicle information unit 6 may include an electronic control device or the like that detects the rotation number of an inverter included in the vehicle V1.

In the present embodiment shown in FIGS. 1 and 2, the communication system 100 includes one management device 2 and a plurality of battery modules 3. The plurality of battery modules 3 are battery modules 3_1 to 3_5, for example.

The battery modules 3_1 to 3_5 are similarly configured. One battery module 3 includes one terminal device 4 and at least one battery cell 5. That is, the communication system 100 shown in FIGS. 1 and 2 includes one management device 2 and a plurality (e.g., 5 in FIG. 2) of terminal devices 4_1 to 4_5. However, the number of management devices 2 and the number of terminal devices 4 included in the communication system 100 are not limited to the above.

The management device 2 performs wireless communication with the terminal device 4. The terminal device 4 obtains battery information from the battery cell 5 and performs wireless communication with the management device 2. The battery information includes information about the state of the battery cell 5. For example, a voltage of the battery cell 5 may be may be the battery information.

In the following, individual constituent elements of the plurality of constituent elements included in the communication system 100 may be represented by adding subscripts to the symbols, such as a battery module 3_1 and a terminal device 4_1. In addition, when describing components collectively, a suffix may be abbreviated/omitted and only a numeral is described like a battery module 3 and the terminal device 4, for example.

The management device 2 and the plurality of battery modules 3 included in the communication system 100 are arranged, for example, as shown in FIG. 2 in a metal housing 200 installed in the vehicle V1. The management device 2 and the plurality of battery modules 3 may be arbitrarily arranged in the housing 200.

In FIGS. 1 and 2, the battery module 3 includes the plurality of battery cells 5, but the battery module 3 may include only one battery cell 5. The number of battery cells 5 included in each of the plurality of battery modules 3 may be different for each battery module 3. When the battery module 3 includes a plurality of battery cells 5, the plurality of battery cells 5 may be connected in series with each other as shown in FIG. 1, or may be connected in parallel although not shown, or they may also be connected in series and parallel.

Further, the housing 200 is not limited to being made of metal. For example, the housing 200 may be made of resin, may be made of both metal and resin, or may be made of material other than metal and resin. Although the housing 200 is shown as having a box shape in FIG. 2, the shape of the housing 200 is not limited to such shape. For example, the housing 200 has a shape in which the communication system 100 can be arranged inside, and may have any shape other than a box shape. Further, for example, the housing 200 may or may not have a radio wave shielding effect. For example, the housing 200 may be the outer shell of the vehicle V1 itself. The housing 200 may not be hermetically sealed.

<Management Device 2>

Returning to FIG. 1, the explanation is continued. The management device 2 includes an antenna 21, a wireless communicator 22, and a management control unit 23.

<Wireless Communicator 21>

The antenna 21 may be an antenna that transmits/receives a wireless communication signal of the first frequency band F1 used in the communication system 100. The wireless communication signal refers to a signal used for wireless communication (that is, a radio wave). The first frequency band F1 may be, for example, the high UHF band (that is, several GHz).

The antenna 21 includes a plurality of antennas including at least one first antenna 211 and at least one second antenna 212. In the present embodiment, the antenna 21 includes one first antenna 211 and one second antenna 212. As shown in FIG. 2, directivity of the first antenna 211 is different from directivity of the second antenna 212. In the present embodiment, directivity of the first antenna 211 is acuter than directivity of the second antenna 212.

Now, the first antenna 211 may have, for example, its directivity narrowly oriented toward at least one of the plural terminal devices 4 (i.e., one battery module 3) in the communication system 100. In the present embodiment, the first antenna 211 has its directivity oriented narrowly toward the terminal device 4 farthest away from the management device 2 (i.e., a subject device).

On the other hand, the second antenna 212 may have a wider directivity than the first antenna 211, as shown in FIG. 2. In other words, directivity of the second antenna 212 may cover all of the plural battery modules 3 in the communication system 100.

However, the present disclosure is not limited to such configuration. The directivity of the first and second antennas 211, 212 may be different from the above, i.e., may also be arbitrarily defined.

<Wireless Communicator 22>

The wireless communicator 22 transmits and receives the wireless communication signals in the above-described first frequency band F1 to/from the terminal devices 4 respectively provided in the plural battery modules 3 via the antenna 21. The wireless communicator 22 includes, as shown in FIG. 3, a transceiver 221 and a switching device 222.

The transceiver 221 transmits/receives the wireless communication signal according to a predetermined communication standard. Examples of the predetermined communication standard include WiFi (registered trademark), Bluetooth (registered trademark), and Bluetooth Low Energy. Moreover, the wireless communicator 22 may be a device to which a standard using UWB is applied. UWB is an abbreviation for Ultra Wide Band. Moreover, the transceiver 221 may be a device to which a standard of another frequency band is applied. Note that, though not illustrated, the transceiver 221 may have a detector detecting signal intensity of received signals and outputting detection results.

The switching device 222 switches, i.e. connects and disconnects, a connection between the transceiver 221 and one of the first antenna 211 and the second antenna 212 according to a switch signal. The switch signal may be a signal output from a management control unit 23 described below for switching a connection of the transceiver 221 either to the first antenna 211 or to the second antenna 212.

<Management Control Unit 23>

The management control unit 23 includes a microcomputer or microcontroller 25 including a CPU 26, a ROM, a RAM, and a semiconductor memory such as a flash memory (hereinafter, a memory 27). The management control unit 23 realizes each function shown in FIG. 4 by the CPU 26 executing a program stored in a non-transitory, tangible recording medium. The memory 27 may be a non-transitory, tangible recording medium that stores a computer program. Further, by executing the computer program, a method corresponding to the computer program is performed.

As shown in FIG. 4, the management control unit 23 has the functions of an antenna determination unit 61, a battery management unit 62, and an information output unit 63. Note that a variable device in the following description is one of the management device 2 and the terminal device 4 in the communication system 100, and, in the present embodiment, the management device 2 is a variable device. Further, a target device is in the other one of the management device 2 and the terminal device 4 when one of them is a variable device, to/with which the variable device communicates. That is, in other words, in the present embodiment in which the variable device is the management device 2, each of the terminal devices 4_1 to 45 may sequentially, one by one in turns, serve as a target device.

The antenna determination unit 61 obtains at least one state information, and determines whether a state of the housing 200 has changed based on the obtained state information. Then, when it is determined that the state of the housing 200 has changed, the antenna determination unit 61 determines one of the plural antennas in the variable device (i.e., the management device 2) as an applicable antenna. The plural antennas are the first antenna 211 and the second antenna 212 in the present embodiment. The applicable antenna is an antenna for wireless communication from the variable device to/with the target device (i.e., the terminal device 4 in the present embodiment), for achieving a certain communication quality.

The state information is information indicating a state of the housing 200. The housing 200 includes the communication system 100 in an inside thereof as described above. The state of the housing 200 may include (i) a shape of the housing 200, (ii) operation of the housing 200, (iii) an environment in which the housing 200 is placed, (iv) a situation in which the housing 200 is put (for example, time, timing, etc.).

For example, the state information may include information indicating a specific state. The specific state is a predetermined state. The specific state may include/indicate a predetermined timing. In the present embodiment in which the housing 200 is mounted on the vehicle V1, a state in which an ignition switch of the vehicle V1 is turned ON may be included as the specific state, for example.

The state information may be information that quantitatively indicates a state of the housing 200. “Quantitatively indicated” means numerically indicated. For example, the state information may be information that quantitatively indicates a vibration of the housing 200. In the present embodiment in which the housing 200 is mounted on the vehicle V1, the state information may be an acceleration of the vehicle V1, for example. Further, the state information may be a rotation number of the inverter included in the vehicle V1.

Further, the state information may be information indicating that the housing 200 has changed with time. For example, the state information may be elapsed time after a certain timing. More specifically, the state information may be a post-determination elapsed time. The post-determination elapsed time is an elapsed time after an applicable antenna is most recently determined. The “recently” refers to a past just before a current moment.

The applicable antenna is an antenna for wireless communication between the variable device and the target device, which realizes/achieves a predetermined communication quality. The communication quality here is a quality of wireless communication between the variable device and the target device. The information indicating a communication quality is designated as BER, for example. BER is an abbreviation for Bit Error Rate, which is an index of communication quality (i.e., a communication index).

However, the present disclosure is not limited to such configuration. The information indicating a communication quality may be a throughput, which may also able to be serving as a communication index. Further, as described later, information indicating a communication quality may be a reception intensity of the wireless communication signal (that is, a test signal described later) transmitted from the management device 2 serving as the variable device.

A change in the state of the housing 200 means that the housing 200 itself and the inside of the housing 200 are changed/have been changed due to changes in the situation in which the housing 200 is put, changes along the lapse of time, and/or changes of other external factors such as vibrations, shocks and the like have occurred. When the state of the housing 200 changes, a distribution state of intensity of the electromagnetic field in the housing 200 changes. That is, that a change in the state of the housing 200 is caused means that some kind of change has occurred to change of a distribution state of intensity of the electromagnetic field in the housing 200.

The antenna determination unit 61 performs a power determination process described later to realize these functions. The battery management unit 62 uses the wireless communicator 22 to perform, by using the applicable antenna, wireless communication with the terminal device 4 that is a target device, causes the terminal device 4 to transmit the battery information obtained by the terminal device 4, and stores the battery information in the memory 27. The battery management unit 62 manages the state of the battery cell 5 in such manner. In the present embodiment, as described above, a voltage of the battery cell 5 is obtained as the battery information. However, the battery information is not limited to such, and the battery information may be various information about a battery cell 5, such as temperature of the battery cell 5 and the like. The battery management unit 62 implements these functions by performing a management process described later.

The information output unit 63 outputs the battery information stored in the memory 27 to an external device of the communication system 100. The external device may be, for example, an electronic control device included in the vehicle V1. Device information is stored in the memory 27. The device information is information of correspondence/association between (i) identification information for identifying each of the plurality of terminal devices 4 and (ii) a frequency band used by each of the plurality of terminal devices 4 for wireless communication with the management device 2 (a frequency band F1 in the present embodiment).

<Terminal Device 4>

Description of FIG. 1 continues. The terminal devices 4 are similarly configured. One terminal device 4 includes an antenna 41, a wireless communicator 42, and a terminal control unit 43.

<Wireless Communicator 42>

The wireless communicator 42 transmits and receives a wireless communication signal using the first frequency band F1 to/from the management device 2 included in the communication system 100 via the antenna 41. The antenna 41 may be an (i.e., one) antenna that transmits and receives a wireless communication signal of the first frequency band F1. The wireless communicator 42 may be an antenna of all directivities, i.e., an antenna having directivity-less character for receiving radio waves from all directions (360 degrees).

<Terminal Control Unit 43>

The terminal control unit 43 includes a microcomputer/microcontroller 45 including a CPU 46 and a memory 47. The terminal control unit 43 realizes each function shown in FIG. 5 by the CPU 46 executing a program stored in the non-transitory, tangible recording medium. The memory 47 may be a non-transitory, tangible recording medium that stores a computer program. Further, by executing the computer program, a method corresponding to the computer program is performed.

As shown in FIG. 5, the terminal control unit 43 has functions of a response unit 71, a battery information obtainer 72, and an information transmitter 73. The terminal control unit 43 may have the function of a reception intensity detector 74.

When receiving a wireless communication signal (for example, a test signal described later) from the variable device (that is, the management device 2 in the present embodiment), the response unit 71 determines a communication index of the received wireless communication signal. In addition, the response unit 71 transmits a wireless communication signal including reception information (for example, a test response signal described later) to the variable device. The reception information is information including at least a determined communication index. The communication index represents a communication quality of the wireless communication signal transmitted from the variable device to the target device (i.e., the terminal device 4 in the present embodiment).

The response unit 71 performs a power response process described later to realize those functions. The battery information obtainer 72 obtains battery information from the battery cells 5 in a predetermined cycle (hereinafter, information obtaining cycle), and stores the obtained battery information in the memory 47. Here, voltage values at both ends (i.e., terminals) of the battery cell 5 is obtained as the battery information, as described above. The information obtaining cycle may be shorter than a management cycle described later.

The information transmitter 73 uses the wireless communicator 42 to perform wireless communication according to a transmission instruction signal transmitted from the management device 2 in a predetermined cycle (hereinafter, a management cycle), and transmits the battery information to the management device 2. The information transmitter 73 performs an information transmission process described later to realize those functions.

The reception intensity detector 74 detects a reception intensity of the wireless communication signal every time the wireless communicator 42 receives a wireless communication signal from the variable device (i.e., from the management device 2 in the present embodiment), and information indicating the detected reception intensity is stored in the memory 47.

[1-2. Process]

<Determination Process and Response Process>

The determination process performed by the antenna determination unit 61 of the management control unit 23 and the response process performed by the response unit 71 of the terminal control unit 43 is described with reference to a flowchart shown in FIG. 6.

The management control unit 23 repeats the determination process in a predetermined cycle. The management control unit 23 obtains the state information in S110. In the present embodiment, an IG signal and the post-determination elapsed time are obtained as state information. The IG signal is a signal indicating whether or not an ignition switch (IG switch) is turned ON. The post-determination elapsed time is an elapsed time since the applicable antenna was determined immediately before. The management control unit 23 measures the post-determination elapsed time in a process different from the determination process.

In S115-S120, the management control unit 23 determines whether or not the state of the housing 200 has changed, based on the state information. First, in S115, the management control unit 23 determines whether or not it is in a specific state. The specific state in the present embodiment means a state in which the ignition switch is being turned ON. The management control unit 23 shifts the process to S125 when not in the specific state, and shifts the process to S120 when in the specific state.

In S120, subsequently, the management control unit 23 determines whether or not the state of the housing 200 has changed, based on a comparison between the quantitatively indicated state information and a predetermined state threshold value. That is, the state threshold value is used to establish/determine a difference between (i) a situation in which the state of the housing 200 has changed and (ii) a situation in which the state of the housing 200 has not changed, and the quantitatively indicated state information in the present embodiment means the state information indicative of a post-determination elapsed time. The management control unit 23 determines that the state of the housing 200 has changed when the post-determination elapsed time becomes equal to or greater than the state threshold value, i.e., a threshold time value.

The threshold time value is a predetermined time, and may be set to an amount of time allowed for the management device 2 not to change a current applicable antenna after the determination described above. The threshold time value is stored in advance in the memory 27. The management control unit 23 shifts the process to S125 when the post-determination elapsed time is less than the threshold time value, and shifts the process to S130 when the post-determination elapsed time is equal to or greater than the threshold time value.

That is, in the present embodiment, it is determined that the state of the housing 200 has changed when the ignition switch is turned ON and the post-determination elapsed time is long. The management control unit 23 sets or determines, in S125 to which the process shifts when it is determined that the state of the housing 200 has not changed, the applicable antenna of each of the plural terminal devices 4 to an applicable antenna “currently” or “at that moment” stored in the memory 27, and ends the process.

In S130, the management control unit 23 selects one of the plurality of terminal devices 4 included in the communication system 100. In the following, the selected terminal device 4 is described as a terminal device X4. Subsequently in S140-S155, the management control unit 23 transmits a test signal to the terminal device X4 serving as the target device sequentially with one of a plurality of predetermined selected antennas. The selected antenna is a predetermined antenna and is an antenna at the time of transmitting a test signal. Note that the test signal includes a test pattern that is a predetermined data string or series of data pieces. The target device is configured to determine a communication index of the test signal according to the received test signal, and to transmit reception information at least including the determined communication index to the variable device (i.e., to the management device 2).

The communication index quantitatively represents a communication quality, and is BER in the present embodiment. That is, the test signal is a signal transmitted from the variable device to the target device, and is a signal that causes the target device that has received the test signal to (i) determine a communication quality (i.e., BER) of the received test signal, and (ii) transmit the reception information at least including the determined communication quality. Note that the reception information may include identification information for identifying the target device (i.e., each of the terminal devices 4 in the present embodiment), as well as a communication index indicating the communication quality of the received test signal.

In S140, the management control unit 23 selects one of a plurality of predetermined selected antennas. The selected antenna is a predetermined antenna, which is a candidate antenna for determining an applicable antenna for the wireless communication with the target device. The plurality of selected antennas are stored in the memory 27 in advance.

Subsequently in S145, the management control unit 23 uses the wireless communicator 22 to transmit a test signal to the terminal device X4 with the selected antenna selected in S140. That is, in the present embodiment, the test signal is transmitted every time the state of the housing 200 changes.

Here, the terminal device X4 (i.e., the response unit 71 of the terminal control unit 43) starts the response process triggered by the transmission of the test signal from the management device 2 serving as the variable device. The terminal control unit 43 receives the test signal in S201.

Subsequently in S202, the terminal control unit 43 determines a BER (Bit Error Rate) as a communication index based on the received test signal. In the terminal device X4, the test pattern included in the test signal is stored in the memory 47 in advance. The terminal control unit 43 confirms a match between the test pattern included in the received test signal and the test pattern stored in the memory 47 in advance (i.e., a correct test pattern), and determines the BER.

The terminal control unit 43 generates the reception information in S203. The reception information is information including at least the BER determined in S202. The reception information may include the identification information for identifying a terminal device 4. The terminal control unit 43 uses the wireless communicator 42 to transmit a test response signal, which is a wireless communication signal including the reception information, to the management device 2. Then, the terminal device X4 ends the power response process.

On the other hand, in S150, the management control unit 23 receives the test response signal including the reception information from the terminal device X4 as serving the target device. The management control unit 23 stores the reception information in the memory 27.

Subsequently in S155, the management control unit 23 obtains the communication index (i.e., BER) included in the reception information transmitted from the terminal device X4 that is the target device, and determines, as an applicable antenna, the selected antenna to perform communication with the target device when the communication index is within a predetermined range. For example, the memory 27 stores a threshold index value in advance. The threshold index value is a numerical value for determining whether the communication index is within an allowable range. In the present embodiment in which the communication index is BER, the threshold index value is set to 10 powered by −n (for example, n is an integer of 1 or more).

The management control unit 23 determines that the communication index (i.e., BER) is appropriate when the BER is less than the threshold index value. Here, when it is determined that the communication index is not appropriate, the management control unit 23 shifts (i.e., returns) the process to S140, and repeats the process of S140-S155. That is, the management control unit 23 changes the selected antenna and transmits the test signal to the terminal device X4 until it is determined that the communication index is appropriate. On the other hand, when it is determined that the communication index is appropriate, the management control unit 23 shifts the process to S160.

In S160, the management control unit 23 determines, as an applicable antenna, the selected antenna selected in S140, which is used when the communication index is determined as appropriate. In S170, the management control unit 23 sets the selected antenna determined in S160 as an applicable antenna of the terminal device X4. The management control unit 23 associates the terminal device X4 with the determined applicable antenna, and stores both in the memory 27.

In S175, the management control unit 23 determines whether or not the process of determining the applicable antenna for all of the terminal devices 4 included in the communication system 100 is complete. Here, the management control unit 23 shifts (i.e., returns) the process to S130 when the applicable antennas have not been determined for all of the terminal devices 4, and repeats the process of S130 to S175. On the other hand, the management control unit 23 ends the present determination process when the applicable antennas are determined for all of the terminal devices 4.

<Management Process and Information Transmission Process>

The management process performed by the battery management unit 62 of the management control unit 23 and the information transmission process performed by the information transmitter 73 of the terminal control unit 43 is described with reference to a flowchart shown in FIG. 7.

The management control unit 23 repeats the management process in a predetermined cycle (i.e., at a management cycle). In S310, the management control unit 23 selects one of the plurality of terminal devices 4 included in the communication system 100. In the following, the selected terminal device 4 is described as a terminal device X4.

In S320, the management control unit 23 obtains the applicable antenna stored in the memory 27 for the terminal device X4, and transmits the transmission instruction signal using the wireless communicator 22 with the applicable antenna. The transmission instruction signal is a wireless communication signal including transmission instruction information. The transmission instruction information includes at least (i) information indicating an instruction to transmit the battery information and (ii) identification information for identifying a terminal device X4 that is a target for executing the instruction.

Then, the terminal device X4 (i.e., the response unit 71 of the terminal control unit 43) starts the information transmission process triggered by the transmission of the transmission instruction signal from the management device 2 serving as the variable device.

The terminal control unit 43 of the terminal device X4 first receives a transmission instruction signal from the management device 2 in S410. The terminal control unit 43 of the terminal device X4 obtains the battery information stored in the memory 47 in S420, subsequently. The battery information referred to here is the battery information most recently obtained by the battery information obtainer 72 and is the battery information stored in the memory 47.

The terminal control unit 43 of the terminal device X4 transmits the transmission response signal using the wireless communicator 42 in S430, subsequently. The transmission response signal is a wireless communication signal including at least the battery information obtained by the terminal device X4. In the present embodiment, the transmission response signal includes the battery information and the identification information for identifying the terminal device X4 that has obtained the battery information. Then, the terminal control unit 43 of the terminal device X4 ends the present information transmission process.

On the other hand, the management control unit 23 of the management device 2 receives the transmission response signal from the terminal device X4 in S330. As described above, in the present embodiment, the transmission response signal includes the battery information and the identification information of the terminal device X4 that has obtained the battery information (i.e., the terminal device 4 that has transmitted the transmission response signal). The management control unit 23 stores the battery information received from the terminal device X4 in the memory 27 in association with the identification information of the terminal device X4.

Subsequently in S340, the management control unit 23 determines whether the process of S310 to S330 has already been performed for all of the terminal devices 4 included in the communication system 100. That is, whether the transmission instruction signal has been transmitted to all terminal devices 4 for causing them to report the battery information, and the battery information from all terminal devices 4 has been stored in the memory 27 is determined.

Here, when it is determined that the above-described process has not yet been performed for all of the terminal devices 4, the management control unit 23 shifts (i.e., returns) the process to S310. Then, the management control unit 23 repeats the process of S310-S340 for the remaining terminal devices 4.

On the other hand, when it is determined that the above process has been performed for all the terminal devices 4, the management control unit 23 ends the management process. At this point, the memory 27 stores the battery information obtained from all the terminal devices 4 included in the communication system 100. In the present embodiment, the identification information and the battery information are associated with each other and stored in the memory 27 for each of the plurality of terminal devices 4.

[1-3. Effects]

According to the first embodiment described in details above, the following effects are achievable.

(1a) The variable device that is one of the management device 2 and the terminal device 4 includes the antenna determination unit 61 and the battery management unit 62 (i.e., the management device 2 is the variable device in the present embodiment). When it is determined that the state of the housing 200 has changed based on the obtained state information, the antenna determination unit 61 determines an antenna for wireless communication with the target device (i.e., the terminal device 4), which is a communication target of the variable device, as the applicable antenna that realizes a predetermined communication quality. The battery management unit 62 causes the wireless communicator 22 to transmit a wireless communication signal (i.e., a transmission instruction signal) to the target device with the applicable antenna.

When the state of the housing 200 changes, the distribution state of intensity of the electromagnetic field inside the housing 200 may change due to, for example, vibration or a change of an object in the housing 200. The change of the object in the housing 200 may include a change in shape of the object due to aging, a change in arrangement/positioning, and the like. When the distribution state of intensity of the electromagnetic field in the housing 200 changes, the distribution of standing waves in the housing 200 changes.

Here, if the wireless communication device is located at a node of the distribution of the standing wave, the wireless communication device may be in a state where the communication quality may deteriorate due to a decrease in the reception level/intensity of the radio wave. On the other hand, if the wireless communication device is located on an antinode of the distribution of the standing wave, the wireless communication device may have a deteriorated communication quality due to saturation of the reception level of the radio wave. That is, if the state of the housing 200 changes, the communication quality may deteriorate.

In the present embodiment, when the state of the housing 200 changes, the antenna for wireless communication between the management device 2 and the terminal device 4 is determined as an applicable antenna, and signal transmission is performed with the applicable antenna. Such a scheme described above may thus prevent/suppress deterioration of communication quality due to a change in the state of the housing 200.

As a result, in the present embodiment, the management device 2 can cause the terminal device 4 to receive the transmission instruction signal even when the state of the housing 200 changes or is changing, thereby enabling obtainment of the battery information transmitted therefrom during the change of the state of the housing 200. As a result, the management device 2 can continuously manage the state of the battery cell 5 regardless of whether the state of the housing 200 has changed.

(1b) The state information may be information indicating a specific state. The antenna determination unit 61 may be configured to determine that the state of the housing 200 has changed, at least when the obtained state information is information indicating the specific state. For example, by determining the specific state as a state in which the electromagnetic field intensity distribution in the housing 200 may possibly change, the applicable antenna is determinable when or whenever the state in which the electromagnetic field intensity distribution may possibly change, i.e., is prone to external influences, for example.

(1c) The communication system 100 may be a system mounted on the vehicle V1. That is, in other words, the housing 200 may be a case of a battery pack mounted on the vehicle V1, and the battery cell 5 may be a rechargeable battery (for example, an assembled battery) used for the vehicle V1. The state information may be information indicating a state in which the ignition switch of the vehicle V1 is turned ON as a specific state. The antenna determination unit 61 may be configured to determine that the state of the housing 200 has changed, at least when the ignition switch of the vehicle V1 is in the specific state, i.e., when the IG switch is turned ON in the vehicle V1.

When the ignition switch is turned ON, various devices start operating, which may cause a change of the electromagnetic field intensity distribution in the vehicle V1 and may also cause a change thereof in the housing 200 in the vehicle V1. In the present embodiment, since the applicable antenna is determined every time the ignition switch is turned ON, it is possible to suppress the deterioration of communication quality.

(1d) The state information may be information that quantitatively indicates the state of the housing 200. The antenna determination unit 61 may be configured to determine whether the state of the housing 200 has changed based on at least the comparison between the state information and the state threshold value. For example, the state threshold value may be appropriately/arbitrarily set to a value representing state information (i.e., a specific situation) when the electromagnetic field intensity distribution in the housing 200 can/may possibly change. Since it is numerically determined that the state of the housing 200 has changed, the determination accuracy can thus be improvable.

(1e) The state information may be the elapsed time (i.e., the post-determination elapsed time) since the applicable antenna was most recently determined. The antenna determination unit 61 may be configured to determine that the state of the housing 200 has changed when at least the post-determination elapsed time becomes equal to or greater than the state threshold value (i.e., the threshold time value). By setting the threshold time value appropriately, the applicable antenna is updatable at appropriate time intervals.

(1f) In S145, the antenna determination unit 61 may be configured to sequentially transmit the test signal to the target device (i.e., the terminal device X4) by using a plurality of predetermined selected antennas when a predetermined execution condition is satisfied. The execution condition is a condition, fulfillment of which leads to a determination of the applicable antenna. In the above embodiment, the execution condition is that the state of the housing 200 has changed. As a result, every time the state of the housing 200 changes, the test signal is transmitted and the applicable antenna is determined as described above. Such a scheme described above thus allows determination of the applicable antenna according to the change of the state depending on the changing states and situations, i.e., time to time, thereby preventing/suppressing the deterioration of communication quality.

The antenna determination unit 61 may be configured to determine, in S160, the selected antenna as an applicable antenna when the communication index (i.e., BER) included in the reception information transmitted from the target device is within the predetermined range. Since the wireless communication signal is transmitted with the applicable antenna at that time, the communication quality at that time can thus be maintained.

(1g) The communication system 100 uses the management device 2 as a variable device and determines the antenna to communicate with the terminal device 4 as the applicable antenna. Therefore, even if the change in the state of the housing 200 affects the transmission characteristics of the wireless communication signal transmitted by the management device 2, the management device 2 itself can determine the applicable antenna in response, for maintaining the communication quality in a reliable state, and for enabling the management device 2 to transmit the battery information more reliably to the target device.

In the present embodiment, the management device 2 may be may be a variable device, and the terminal device 4 may be may include a target device. The management control unit 23 may be may be an antenna determination unit, a transmission instruction unit, a test transmission unit, and a test determination unit. S145 may be may be the process as a test transmission unit, and S160 may be may be the process as a test determination unit.

[1-4. Modification Example]

In the above-described first embodiment, an example in which the management device 2 is a variable device and the terminal device 4 is a target device has been described. However, the present disclosure is not limited to such example. A modification example is shown in the following.

<First Modification>

In a First Modification, the management device 2 may be the target device and the terminal device 4 may be the variable device. That is, the terminal device 4 may be configured to determine, as the applicable antenna, the antenna for the wireless communication to communicate with the management device 2. When the change in the state of the housing 200 affects the transmission characteristics of the wireless communication signal by the terminal device 4, the applicable antenna can be determined on the terminal device 4 side, for maintaining the communication quality in a reliable state, and for more reliable reception of the battery information by the management device 2.

Here, in the management device 2, as a target device, the wireless communicator 22 has one antenna 21. The one antenna 21 may have directivity of all directions, or directivity-less characteristics. The management control unit 23 includes a configuration similar to the response unit 71 included in the terminal control unit 43 (hereinafter, referred to as a response unit included in the management control unit 23) instead of including the antenna determination unit 61 described above. That is, the response unit (not shown) included in the management control unit 23 performs the same process as the above-described response process.

On the other hand, the terminal device 4, as a variable device, includes a plurality of antennas 41 as shown in FIG. 8. The plurality of antennas 41 include at least one first antenna 411 and at least one second antenna 412 having different directivity than the first antenna 411. In the present embodiment, the plurality of antennas 41 include one first antenna 411 and one second antenna 412 having different directivity.

The wireless communicator 42 in the present modification is similar to the one in the first embodiment. That is, as shown in FIG. 8, the wireless communicator 42 is provided with a transceiver 421 and a switching device 422. The transceiver 421 is configured in the same manner as the transceiver 221. The switching device 422 connects, according to the switch signal output from the terminal control device, the transceiver 421 and either one of the first antenna 411 or the second antenna 412.

The terminal control unit 43 includes, in place of the response unit 71 described above, a configuration substantially same as the antenna determination unit 61 included in the management control unit 23 described above (hereinafter, referred to as an antenna determination unit included in the terminal control unit 43). That is, the antenna determination unit (not shown) included in the terminal control unit 43 performs almost the same process as the above-described power determination process.

Note that, however, the communication system 100 includes a plurality of terminal devices 4, and the plurality of terminal control units 43 sequentially determine the antenna for wireless communication with the management device 2 as the applicable antenna, which is a difference of the power determination process performed by the terminal control unit 43 from the power determination process shown in FIG. 6.

Hereinafter, each process is described with reference to a flowchart shown in FIG. 9, focusing on differences therefrom. The terminal control unit 43 repeats the determination process shown in FIG. 9 in a predetermined cycle. In S210-S220, the terminal control unit 43 performs the same process as in S110-S120.

The terminal control unit 43 sets the applicable antenna for the management device 2 to an applicable antenna then stored in the memory 47 in S225, which comes after S215 and S220 in which the state of the housing 200 has been determined as not changed, and the process is complete.

The terminal control unit 43 obtains a terminal device number n in S226, which comes after determination that the state of the housing 200 is changed in S215 and S220. The terminal device number n is a number sequentially assigned to each of the plurality of terminal devices 4 included in the communication system 100.

For example, the terminal device 4_1 has a terminal device number of 1 (i.e., n=1) assigned thereto, the terminal device 4_2 has a terminal device number of 2 (i.e., n=2) assigned thereto, and so on. A terminal device number n is assigned in advance for each terminal device 4. Note that the terminal device number n may be sequentially assigned to any terminal device 4. The terminal device number n assigned in advance is stored in the memory 47 in advance.

Subsequently in S227, the terminal control unit 43 determines whether or not the terminal device number n of a subject device including the terminal control unit 43 itself is 1. The terminal control unit 43 shifts the process to S240 when the terminal device number n is 1, and shifts the process to S228 when the terminal device number n is not 1.

The terminal control unit 43 waits until the terminal control unit 43 receives an update instruction indicating an update number y that indicates the terminal device number n of the subject device in S228, which comes after determination that the terminal device number n is not 1. Upon receiving the update instruction, the terminal control unit 43 shifts the process to S240. The update instruction is an instruction for starting the process of determining an antenna to communicate with the target device (i.e., the management device 2 in the present modification) as the applicable antenna (i.e., the process of S240 and subsequent steps).

Note that in the present modification, the update instruction is an instruction transmitted from the terminal device 4 having the terminal device number assigned as an update number y−1. The update number y indicates a terminal device number of the terminal device 4 from which the process of determining the antenna to communicate with the management device 2 as the applicable antenna starts.

Similarly to S140 of FIG. 6, in S240 which comes after (i) determination that the terminal device number n is 1 or (ii) reception of an update instruction having the terminal device number n assigned as an update number y indicating the subject device, the terminal control unit 43 selects one of a plurality of selected antennas. The plurality of selected antennas are stored in the memory 47 in advance.

Subsequently in S245, the terminal control unit 43 uses the wireless communicator 42 to transmit a test signal to the management device 2 with the selected antenna selected in S240. Here, the management device 2 (i.e., the management control unit 23) starts the response process triggered by the transmission of the test signal from the terminal device 4 as the variable device.

The management control unit 23 receives the test signal in S101. Subsequently in S102, the management control unit 23 determines the BER based on the received test signal. In the management device 2, the test pattern described above are stored in the memory 27 in advance. The management control unit 23 confirms a match between the test pattern included in the received test signal and the test pattern stored in the memory 27 (i.e., the correct test pattern), and determines the BER.

In S103, the management control unit 23 uses the wireless communicator 22 to generate reception information including at least the BER determined in S102, and transmits a wireless communication signal including the reception information (hereinafter, a test response signal) to the terminal device 4. Thus, the management device 2 ends the response process.

On the other hand, in S250, the terminal control unit 43 receives the test response signal including the reception information from the management device 2 as the target device. The terminal control unit 43 stores the reception information in the memory 47. Subsequently in S255, the terminal control unit 43 obtains the communication index (i.e., BER) included in the reception information transmitted from the management device 2 that is the target device, and determines, as the applicable antenna, an antenna for the wireless communication when the communication index is within a predetermined range. For example, the memory 47 stores a threshold index value in advance. When the BER is less than the threshold index value, the terminal control unit 43 determines that the communication index is appropriate.

Here, the terminal control unit 43 shifts the process to S240 when it is determined that the communication index is not appropriate, and repeats the process of S240-S255. That is, the test signal is repeatedly transmitted to the management device 2 with the antenna changed until it is determined that the communication index is appropriate. On the other hand, when the communication index is determined as appropriate, the terminal control unit 43 shifts the process to S260.

In S260, the terminal control unit 43 determines, as the applicable antenna, the selected antenna selected in S240 when the communication index is determined as appropriate. In S270, the terminal control unit 43 sets the applicable antenna determined in S260 as the applicable antenna to the management device 2. That is, the terminal control unit 43 stores the management device 2 and the determined applicable antenna in the memory 47 in association with each other.

In S285, the terminal control unit 43 transmits an update instruction indicating that the update number y is n+1 to the terminal device 4 having the update number y (i.e., y=n+1). As a result, in the terminal device 4 having the terminal device number y, which is on standby, the process of determining the applicable antenna to the management device 2 (i.e., the process of S240 and thereafter) is started. The terminal control unit 43 thus ends the determination process. When the communication system 100 includes m pieces of the terminal devices 4, S285 may be deleted/skipped in the above-described determination process in the terminal device 4 whose terminal device number is m (m: integer of 2 or more).

In the First Modification, when it is determined that the state of the housing 200 has changed, the process of determining the antenna to communicate with the management device 2 as the applicable antenna is performed in the plurality of terminal devices 4, i.e., starting from the terminal device 4 having the terminal device number 1, and then sequentially in the device 4 with the device number 2 and soon. In such manner, the same effects as that of the above-described embodiment are achievable. This scheme is particularly effective when change in the state of the housing 200 greatly influences the transmission characteristics of the wireless communication signal by the terminal device 4.

In the present modification, the management device 2 may be be a target device and the terminal device 4 may be be a variable device. The terminal control unit 43 may include an antenna determination unit, a transmission instruction unit, a test transmission unit, and a test determination unit. S245 may be the process as a test transmission unit, and S260 may be the process as a test determination unit.

<Second Modification>

In a Second Modification, the management device 2 may be a variable device and the terminal device 4 may be a target device, AND the management device 2 may also be a target device and the terminal device 4 may also be a variable device. That is, the management device 2 may be configured to determine the antenna used for wireless communication with the terminal device 4 as the applicable antenna, and the terminal device 4 may be configured to determine the antenna used for the wireless communication with the management device 2 as the applicable antenna.

If the change in the state of the housing 200 affects the transmission characteristics of the wireless communication signal transmitted from both of the management device 2 and the terminal apparatus 4, the management device 2 and the terminal apparatus 4 can respectively determine the applicable antenna. In such manner, the communication quality can be maintained in a reliable state and the management device 2 can receive the battery information more reliably.

For example, in the Second Modification, the management device 2 may be configured to determine the applicable antenna, and subsequently, the plurality of terminal devices 4 may be configured to sequentially determine the applicable antenna, respectively. Here, the management device 2 includes, as the antenna 21, the first antenna 211 and the second antenna 212 similar to the first embodiment, and includes the wireless communicator 22 similarly configured as the first embodiment. The management control unit 23 includes (i) the above-described antenna determination unit 61 and (ii) the response unit included in the management control unit 23 described in the First Modification. However, the determination process shown in FIG. 10 performed by the management device 2 of the Second Modification is different from the process shown in FIG. 5 in that the plurality of terminal devices 4 subsequently determine the applicable antenna in order (i.e., one by one). Note that the antenna determination unit 61 and the response unit included in the management control unit 23 described above can perform processes in parallel.

On the other hand, the terminal control unit 43 includes (i) the response unit 71 described above and (ii) the power determination unit included in the terminal control unit 43 described in the First Modification. However, the determination process shown in FIG. 11 performed by the terminal control unit 43 of the Second Modification is different from the process shown in FIG. 9 in that the applicable antenna is determined subsequent to the determination by the management device 2. Note that the response unit 71 and the antenna determination unit included in the terminal control unit 43 described above can perform processes in parallel.

Hereinafter, each process is described with reference to flowcharts shown in FIGS. 10 and 11 focusing on the difference. The determination process shown in FIG. 10 performed by the management control unit 23 of the Second Modification is different from the determination process shown in FIG. 6 in that S180 is added.

In S110-S175, the management control unit 23 performs the same process as the process shown in FIG. 6. That is, the management control unit 23 determines the applicable antenna for all of the terminal devices 4, and then the process proceeds to S180.

In S180, the management control unit 23 transmits an update instruction indicating that the update number y is 1 to the terminal device 4 whose terminal device number n is 1. In such manner, as is described later, in the terminal device 4 whose terminal device number is 1, which is on standby, the process of determining the applicable antenna to the management device 2 is started. That is, after the applicable antenna is determined by the management device 2, the terminal device 4 subsequently starts determination of the applicable antenna.

The determination process shown in FIG. 11 performed by the terminal control unit 43 of the Second Modification is different from the determination process shown in FIG. 9 in that S227 is deleted. That is, the terminal control unit 43 obtains the terminal device number in S226, and then shifts the process to S228.

In S228, the terminal control unit 43 waits until receiving an update instruction indicating that the update number y indicates/designates the terminal device number n of the subject device (i.e., the update number y=1), and when such update instruction is received, the terminal control unit 43 proceeds the process to S240. After S240, the terminal control unit 43 performs the same process as the process shown in FIG. 9.

In such manner, in the present modification, the same effects as that of the above-described embodiment are achievable. This scheme is effective in particular when change of the state of the housing 200 influences the transmission characteristics of the wireless communication signal for both of the management device 2 and the terminal device 4.

In the present modification, the management device 2 may be a variable device and the terminal device 4 may be a target device. In this case, the management control unit 23 may be a determination unit, a transmission instruction unit, a test transmission unit, and a test determination unit. S145 may be the process as a test transmission unit, and S160 may be the process as a test determination unit. Further, the management device 2 may be a target device, and the terminal device 4 may be a variable device. In this case, the terminal control unit 43 may include an antenna determination unit, to a transmission instruction unit, to a test transmission unit, and to a test determination unit. S245 may be the process as a test transmission unit, and S260 may be the process as a test determination unit.

<Third Modification>

In the Second Modification described above, the management device 2 is configured to determine the applicable antenna, and subsequently, the plurality of terminal devices 4 are configured to sequentially determine the applicable antenna. However, the present disclosure is not limited to such configuration. In a Third Modification, the plurality of terminal devices 4 may be configured to sequentially determine the applicable antenna, and then the management device 2 may be configured to determine the applicable antenna. Thereby, the same effects as the Second Modification are achievable.

In this case, the terminal device 4 may be configured to perform the determination process shown in FIG. 10. Then, for example, when the communication system 100 includes m terminal devices 4, the m-th terminal device 4 may be configured to transmit the update instruction to the management device 2 instead of performing the process of S285 as a process subsequent to S270. For example, in the determination process shown in FIG. 6, the management device 2 waits until receiving the update instruction after the positive determination in S120, and the process proceeds to S130 when the update instruction is received. Then, the management device 2 may start the process of determining the applicable antenna.

Second Embodiment

[2-1. Differences from First Embodiment]

The fundamental configuration of the second embodiment is similar to that of the first embodiment. Therefore, a difference therebetween is described in the following. The same reference numerals as in the first embodiment denote the same components, and reference is made to the preceding description.

In the second embodiment, similar to the first embodiment, the management device 2 is a variable device and the terminal device 4 is a target device. In the above-described first embodiment, it is determined that the state of the housing 200 has changed when it is in the specific state (i.e., the ignition switch is turned ON) and the post-determination elapsed time is equal to or greater than the threshold time value, then the test signal is transmitted and the applicable antenna is determined.

On the other hand, in the second embodiment, when (i) the state information quantitatively indicating the vibration of the housing 200 is equal to or greater than the state threshold value and (ii) the post-determination elapsed time is equal to or greater than the threshold time value, it is determined that the state of the housing 200 is changed, which is different from the first embodiment in that how it is determined whether the change of the state has occurred. Further, the second embodiment is different from the first embodiment in that the applicable antenna is determined using learning information including (i) setting information described later and (ii) learning antenna associated with the setting information.

In the present embodiment, an acceleration of the vehicle V1 is used as the state information that quantitatively indicates/represents the vibration of the housing 200.

[2-2. Process]

Next, the determination process performed by the management control unit 23 of the second embodiment in place of the determination process of the first embodiment (i.e., FIG. 5) is described with reference to a flowchart in FIG. 12. Since the process of S140-S160 in FIG. 12 is the same as the process of S140-S160 in FIG. 6, a part of the description is simplified.

The management control unit 23 first obtains the state information in S111. As the state information, information indicating the magnitude of vibration of the housing 200 and the post-determination elapsed time are obtained as the state information. In the present embodiment, more specifically, information indicating the acceleration of the vehicle V1 is obtained as information indicating the magnitude of vibration of the housing 200.

Subsequently in S116 to S120, the management control unit 23 determines whether or not the state of the housing 200 has changed, based on the state information. In the present embodiment, when (i) the vibration of the housing 200 is relatively large and (ii) the post-determination elapsed time is long, it is determined that the state of the housing 200 has changed.

First, in S116, the management control unit 23 determines whether or not the vibration of the housing 200 is relatively large. More specifically, the management control unit 23 determines that the vibration of the housing 200 is relatively large when the acceleration of the vehicle V1 is equal to or greater than a predetermined acceleration threshold value. The management control unit 23 shifts the process to S125 when the acceleration of the vehicle V1 is less than the acceleration threshold value, and shifts the process to S120 when the acceleration is equal to or greater than the acceleration threshold value.

Subsequently in S120, the management control unit 23 obtains the post-determination elapsed time and determines whether the post-determination elapsed time is equal to or greater than the threshold time value. The management control unit 23 shifts the process to S125 when the post-determination elapsed time is less than the threshold time value, and shifts the process to S130 when the post-determination elapsed time is equal to or greater than the threshold time value.

The management control unit 23 performs the same process as S125 of FIG. 6 in S125 of FIG. 10, which comes after occasion of when it is determined that the state of the housing 200 has not changed. That is, the management control unit 23 sets the applicable antenna for each of the plurality of terminal devices 4 to the applicable antenna stored in the memory 27 at such time, and the present process ends.

The management control unit 23 selects one of the plurality of terminal devices 4 included in the communication system 100 in S130 which comes after determination that change has occurred in the state of the housing 200. In the following, the selected terminal device 4 is described as a terminal device X4.

Subsequently in S135, the management control unit 23 obtains the learning information of the terminal device X4. The learning information is information including at least one set of correspondence information. The correspondence information includes at least the setting information and the learning antenna associated with the setting information. The setting information is state information indicating a predetermined numerical value included in the learning information. The learning antenna is an antenna of the variable device, which is associated with the setting information in the learning information. In the present embodiment, the learning information includes a plurality of sets of correspondence information.

In the present embodiment, the correspondence information includes, in addition to the setting information and the learning antenna, information indicating a time when the learning antenna associated with the setting information is determined. The learning information is set for each terminal device 4 and stored in the memory 27. FIG. 13 shows an example of the learning information of the present embodiment in which the state information is the acceleration of the vehicle V1.

Subsequently in S136, when it is determined that the state of the housing 200 has changed, the management control unit 23 determines whether the state information obtained in S111 matches selection information included in the learning information. The selection information is one of plural pieces of setting information included in the learning information. In other words, the management control unit 23 determines that the obtained state information and the selection information match with each other when the obtained state information is included in a predetermined range including the selection information. The management control unit 23 shifts the process to S165 when it determines that they match, and shifts the process to S140 when it determines that they do not match.

In S140 and subsequent steps up to S160 which comes after determination that the state information obtained in S116 does not fall within the predetermined range including the selection information included in the learning information, the management control unit 23 determines the applicable antenna, similarly to S140 to S160 of FIG. 6.

Subsequently in S161, the management control unit 23 generates one set of new correspondence information based on the result of S160. That is, the management control unit 23 generates one set of new correspondence information including (i) the acceleration of the vehicle V1 as new setting information, which is the state information obtained in S111, and (ii) the applicable antenna determined in S160 as a new learning antenna. The management control unit 23 adds the new correspondence information to the learning information stored in the memory 27. Then, the learning information to which the new correspondence information is added is stored in the memory 27 as new learning information. In such manner, the number of correspondence information included in the learning information increases.

In S165 which comes after determination of match between (i) the acceleration of the vehicle V1 that is the state information obtained in S111 and (ii) the selection information that is one of the setting information included in the learning information, the learning antenna corresponding to the selection information is determined as the applicable antenna.

In S170, the management control unit 23 sets the applicable antenna determined in S160 or S165 as the applicable antenna of the terminal device X4, and associatively stores the terminal device X4 with the determined applicable antenna in the memory 27.

In S175, the management control unit 23 shifts the process to S130 when the applicable antennas have not been determined for all of the terminal devices 4, and repeats the process of S130-S175. On the other hand, the management control unit 23 ends the present determination process when the applicable antennas are determined for all of the terminal devices 4.

[2-3. Effects]

According to the second embodiment described in details above, the effects (1a), (1d), (1g) of the above-described first embodiment are achievable, and the following effects are also achievable.

(2a) In S136, when it is determined that the state of the housing 200 has changed, the antenna determination unit 61 determines that the acceleration, which is the obtained state information, is within a predetermined range including the selection information.

Here, in S165, the antenna determination unit 61 determines the learning antenna associated with the selection information as the applicable antenna when the obtained state information is included in the predetermined range including the selection information. In such manner, the applicable antenna is determinable based on the learning information without transmitting the test signal, thereby reducing a process load for determining the applicable antenna.

On the other hand, when it is determined in S140 to S160 that the state of the housing 200 has changed, the antenna determination unit 61 determines the applicable antenna when the execution condition is satisfied, which is a condition that the obtained state information is not included in the predetermined range including the selection information. In such manner, the applicable antenna is determinable even when the learning antenna corresponding to the obtained state information is not stored in the learning information.

(2b) In S161 as a storage execution unit, the antenna determination unit 61 adds the information that associates the obtained state information and the applicable antenna determined in S140 to S160 to the learning information, when the obtained state information is not included in the predetermined range including the selection information. Then, the antenna determination unit 61 may be configured to store the learning information to which the above-described information is added in the memory 27 as new learning information. In such manner, the learning information is updatable.

(2c) The state information for determining whether the state of the housing 200 has changed may be information that quantitatively indicates the vibration state of the housing 200. The electromagnetic field intensity distribution in the housing 200 may change due to the vibration of the housing 200. By using the information that quantitatively indicates the vibration of the housing 200 as the state information, it is possible to accurately determine, as a quantity in number or numerically, the state in which the electromagnetic field intensity distribution in the housing 200 may possibly change.

(2d) Specifically, the housing 200 may be mounted on the vehicle V1, and the state information may be the acceleration of the vehicle V1. The antenna determination unit 61 may determine that the state of the housing 200 has changed when the acceleration of the vehicle V1 becomes equal to or greater than the acceleration threshold value serving as the state threshold value. When the acceleration of the vehicle V1 is relatively large, it is considered that the arrangement or positions of various devices in the housing 200 may slightly change and the electromagnetic field intensity distribution in the housing 200 may possibly change. In the present embodiment, since the applicable antenna is determined when the acceleration of the vehicle V1 is relatively large, it is possible to prevent/suppress the deterioration of communication quality.

In the present embodiment, the management device 2 may be a variable device, and the terminal device 4 may be a target device. The management control unit 23 may include an antenna determination unit, a transmission instruction unit, a test transmission unit, a test determination unit, a state obtaining unit, a correspondence information obtaining unit, a correspondence determination unit, and a selection determination unit. S145 may be the process as a test transmission unit, and S160 may be the process as a test determination unit. S111 may be the process as a state obtaining unit, S135 may be the process as a correspondence information obtaining unit, S136 may be the process as a correspondence determination unit, and S165 may be the process as a selection determination unit.

[2-4. Modification]

Modifications of the second embodiment are described in the following.

<Fourth Modification>

In a Fourth Modification, just like the First Modification described above, the management device 2 of the second embodiment may be a target device and the terminal device 4 of the second embodiment may be a variable device. That is, the plurality of terminal devices 4 may be configured to sequentially determine the antenna to perform the wireless communication with the management device 2 as the applicable antenna based on the learning information. Also in the present modification, the same effects as that of the second embodiment are achievable. This scheme is particularly effective when change in the state of the housing 200 influences the transmission characteristics of the wireless communication signal by the terminal device 4.

The response process performed by the management device 2 (i.e., the management control unit 23) of the present modification and the determination process performed by each of the terminal devices 4 (i.e., the terminal control unit 43) of the present modification are described using a flowchart in FIG. 14. In the following, differences from the flowchart of FIG. 12 (i.e., the determination process by the management device 2 of the second embodiment) and the flowchart of FIG. 9 (i.e., the determination process by the terminal device 4 of the first embodiment) are mainly described.

In S211-S220, the terminal control unit 43 performs the same process as in S111-S120 of FIG. 12. That is, when it is determined that the acceleration of the vehicle V1 is equal to or greater than the acceleration threshold value in S211, and when it is determined that the post-determination elapsed time is equal to or greater than the threshold time value in S220, the terminal control unit 43 determines that change in the state of the housing 200 has occurred.

The terminal control unit 43 sets, in S225, which comes after determination that no change in the state of the housing 200 has occurred, the applicable antenna of the management device 2 to the applicable antenna stored in the memory 47 at the moment, and then ends the present process.

In S226-S228 of FIG. 14, the terminal control unit 43 performs the same process as S226-S228 of FIG. 9, which comes after determination that change in the state of the housing 200 has occurred. Subsequently in S235, the terminal control unit 43 obtains the learning information set for the management device 2. The learning information is stored in the memory 47.

Subsequently in S236, the terminal control unit 43 determines whether the state information (i.e., the acceleration of the vehicle V1) obtained in S111 when it is determined that the state of the housing 200 has changed matches the selection information, which is one of the setting information included in the learning information. The terminal control unit 43 shifts the process to S265 when it determines that they match, and shifts the process to S240 when it determines that they do not match.

In S240-S260, the terminal control unit 43 performs the same process as in S240-S260 of FIG. 9, and determines the applicable antenna of the management device 2. Subsequently in S261, the terminal control unit 43 adds, to the learning information already stored in the memory 47, the acceleration of the vehicle V1 which is the state information obtained in S211 and the applicable antenna determined in S260 as one set of new correspondence information. Then, the learning information to which the new correspondence information is added is stored in the memory 47 as new learning information.

In S265, which comes after determination that the state information (i.e., the acceleration of the vehicle V1) obtained in S211 matches the selection information which is one of the setting information included in the learning information, the terminal control unit 43 determines the learning antenna corresponding to the selection information as the applicable antenna.

In S270, the terminal control unit 43 sets the applicable antenna determined in S260 or S265 as the applicable antenna for the management device 2, and associatively stores the management device 2 with the determined applicable antenna in the memory 47.

In S285, the terminal control unit 43 transmits an update instruction indicating that the update number y is n+1 to the terminal device 4 whose terminal device number n is y, as in S285 of FIG. 9. Then, the terminal control unit 43 of the present modification ends the determination process as described above.

In the present modification, the management device 2 may be a target device and the terminal device 4 may be a variable device. The terminal control unit 43 may include an antenna determination unit, a transmission instruction unit, a test transmission unit, a test determination unit, a state obtaining unit, a correspondence information obtaining unit, a correspondence determination unit, and a selection determination unit. S245 may be the process as a test transmission unit, and S260 may be a process as a test determination unit. S211 may be a process as a state obtaining unit, S235 may be a process as a correspondence information obtaining unit, S236 may be a process as a correspondence determination unit, and S265 may be a process as a selection determination unit.

<Fifth Modification>

In a Fifth Modification of the second embodiment, just like the Second Modification (of the first embodiment) described above, the management device 2 may be a variable device and the terminal device 4 may be a target device, AND the management device 2 may also be a target device and the terminal device 4 may also be a variable device. That is, based on the learning information, the management device 2 may be configured to determine the antenna of the wireless communication with the terminal device 4 as the applicable antenna, and to determine the antenna for the wireless communication performed by the terminal device 4 with the management device 2 as the applicable antenna.

Also in the present modification, the same effects as that of the second embodiment are achievable. This scheme is effective in particular when change of the state of the housing 200 influences the transmission characteristics of the wireless communication signal by both of the management device 2 and the terminal device 4.

For example, in the Fifth Modification, the management device 2 may be configured to determine the applicable antenna, and subsequently, the plurality of terminal devices 4 may be configured to sequentially determine the applicable antenna. The determination process performed by the management device 2 (i.e., the management control unit 23) of the present modification and the response process performed by each of the terminal devices 4 (i.e., the terminal control unit 43) of the present modification are described in FIG. 15 using a flowchart. The response process performed by the management control unit 23 of the present modification and the determination process performed by each of the terminal control units 43 of the present modification are described with reference to a flowchart of FIG. 16.

In the following, with reference to the flowchart of FIG. 12 (i.e., the determination process by the management device 2 of the second embodiment) and the flowchart of FIG. 14 (i.e., the determination process by the terminal device 4 of the Fourth Modification of the second embodiment), the differences therefrom are mainly described.

Here, the determination process shown in FIG. 15 performed by the management control unit 23 of the present modification is different from the determination process shown in FIG. 12 in that S180 is added. S180 shown in FIG. 15 is the same process as S180 shown in FIG. 10.

On the other hand, the determination process shown in FIG. 16 performed by the terminal control unit 43 of the present modification differs from the determination process shown in the flowchart of FIG. 14 in that S227 is deleted. In such manner, the management device 2 determines the antenna of the wireless communication with the terminal device 4 as the applicable antenna based on the learning information, and the terminal device 4 determines the antenna of the wireless communication with the management device 2 as the applicable antenna based on the learning information.

<Sixth Modification>

In the Fifth Modification described above, the management device 2 is configured to determine the applicable antenna based on the learning information, and then the plurality of terminal devices 4 are configured to sequentially determine the applicable antenna based on the learning information. However, the present disclosure is not limited to such configuration. In a Sixth Modification, the plurality of terminal devices 4 may be configured to sequentially determine the applicable antenna based on the learning information, and then the management device 2 may be configured to determine the applicable antenna based on the learning information.

In this case, the terminal control unit 43 included in the terminal device 4 may be configured to perform the determination process shown in FIG. 14. Then, for example, when the communication system 100 includes m pieces of the terminal device 4, the m-th terminal device 4 may be configured to transmit the update instruction to the management device 2 instead of performing the process of S285 as a process subsequent to S270. For example, in the determination process shown in FIG. 12, the management device 2 may wait until the update instruction is received after a positive determination is made in S120, and may shift the process to S130 when the update instruction is received, and may start the process of determining the applicable antenna.

Third Embodiment

[3-1. Difference from Second Embodiment]

The fundamental configuration of the third embodiment is similar to that of the second embodiment. Therefore, the difference therebetween is described in the following. Note that the same reference numerals as those in the second embodiment indicate the same configuration, and refer to the preceding descriptions.

In the above-described second embodiment, the acceleration of the vehicle V1 is used as the state information that quantitatively indicates the vibration of the housing 200. Then, when (i) the acceleration of the vehicle V1 becomes equal to or greater than the acceleration threshold value and (ii) the post-determination elapsed time is equal to or greater than the threshold time value, it is determined that the state of the housing 200 has changed.

On the other hand, the third embodiment is different from the second embodiment in that the rotation number of the inverter is used as the state information quantitatively indicating the vibration of the housing 200. Then, in connection with the above, the third embodiment is different from the second embodiment in that it is determined that the state of the housing 200 has changed when (i) the rotation number of the inverter becomes equal to or greater than a predetermined rotation number threshold value and (ii) the post-determination elapsed time becomes equal to or greater than the threshold time value.

[3-2. Process]

Next, the determination process of the present embodiment, which is performed by the management control unit 23 of the third embodiment in place of performing the determination process of the second embodiment (i.e., FIG. 12), is described using a flowchart of FIG. 17. Since the process of S125-S175 in FIG. 17 is similar to the process of S125-S175 in FIG. 12, a part of the description is simplified.

First, the management control unit 23 obtains the state information in S112. In the present embodiment, information indicating the magnitude of vibration of the housing 200 and the post-determination elapsed time are obtained as the state information. Specifically, as the information indicating the magnitude of vibration of the housing 200, the information indicating the rotation number of the inverter is obtained.

Subsequently in S117-S120, the management control unit 23 determines whether or not the state of the housing 200 has changed, based on the state information. In the present embodiment, when (i) the vibration of the housing 200 is relatively large and (ii) the post-determination elapsed time is long, it is determined that the state of the housing 200 has changed.

First, in S117, the management control unit 23 determines whether or not the vibration of the housing 200 is relatively large. Specifically, the management control unit 23 determines that the vibration of the housing 200 is relatively large when the rotation number of the inverter is equal to or greater than a predetermined rotation number threshold value. The management control unit 23 shifts the process to S125 when the rotation number of the inverter is less than the rotation number threshold value, and shifts the process to S120 when the rotation number is equal to or greater than the rotation number threshold value.

Subsequently in S120, the management control unit 23 obtains the post-determination elapsed time, and determines whether the post-determination elapsed time is equal to or greater than the threshold time value. The management control unit 23 shifts the process to S125 when the post-determination elapsed time is less than the threshold time value, and shifts the process to S130 when the post-determination elapsed time is equal to or greater than the threshold time value.

In S125-S175, the management control unit 23 performs the same process as S125-S175 in FIG. 12.

[3-3. Effects]

According to the third embodiment described in details above, the effects (1a), (1d), (1g) of the first embodiment and the effects (2a)-(2c) of the second embodiment are achievable, together with the following effects.

(3a) The housing 200 may be mounted on the vehicle V1. The state information may be information indicating the rotation number of the inverter included in the vehicle V1. The antenna determination unit 61 may determine that the state of the housing 200 has changed when the rotation number of the inverter is equal to or greater than the rotation number threshold value which serves as the state threshold value. It is considered that the electromagnetic field intensity distribution in the housing 200 changes more greatly as the rotation number of the inverter increases. In the present embodiment, since the applicable antenna is determined when the rotation number of the inverter relatively increases, it is possible to suppress the deterioration of the communication quality.

In the present embodiment, the management device 2 may be a variable device, and the terminal device 4 may be a target device. The management control unit 23 may include an antenna determination unit, a transmission instruction unit, a test transmission unit, a test determination unit, a state obtaining unit, a correspondence information obtaining unit, a correspondence determination unit, and a selection determination unit. S145 may be the process as a test transmission unit, and S160 may be the process as a test determination unit. S112 may be the process as a state obtaining unit, S135 may be the process as a correspondence information obtaining unit, S136 may be the process as a correspondence determination unit, and S165 may be the process as a selection determination unit.

[3-4. Modification]

Modifications of the third embodiment are described in the following.

<Seventh Modification>

In a Seventh Modification of the third embodiment, as in the Fourth Modification described above, the management device 2 of the third embodiment may be a target device, and the terminal device 4 of the third embodiment may be a variable device. That is, the plurality of terminal devices 4 may be configured to sequentially, in turns, determine the antenna of the wireless communication with the management device 2 as the applicable antenna based on the learning information.

However, the present modification is different from the Fourth Modification in that the rotation number of the inverter is used as the state information that quantitatively indicates the vibration of the housing 200. Then, in connection with such point, the present modification is different from the Fourth Modification in that it is determined that the state of the housing 200 has changed when (i) the rotation number of the inverter becomes equal to or greater than a predetermined rotation number threshold value, and (ii) the post-determination elapsed time becomes equal to or greater than a threshold time value.

For example, the terminal control unit 43 of the present modification may be configured to execute the determination process shown in the flowchart of FIG. 18. In FIG. 18, S211 in FIG. 14 is replaced with S212, and S216 in FIG. 14 is replaced with S217.

Also in the present modification, the same effects as that of the third embodiment are achievable. This scheme is particularly effective when change in the state of the housing 200 influences the transmission characteristics of the wireless communication signal by the terminal device 4.

Note that in the present modification, the management device 2 may be a target device and the terminal device 4 may be a variable device. The terminal control unit 43 may include an antenna determination unit, a transmission instruction unit, a test transmission unit, a test determination unit, a state obtaining unit, a correspondence information obtaining unit, a correspondence determination unit, and a selection determination unit. S245 may be the process as a test transmission unit, and S260 may be the process as a test determination unit. S212 may be a process as a state obtaining unit, S235 may be a process as a correspondence information obtaining unit, S236 may be a process as a correspondence determination unit, and S265 may be a process as a selection determination unit.

<Eighth Modification>

In an Eighth Modification, the third embodiment may be modified, just like the Fifth Modification described above, in that both of the following (i) and (ii) are possible, i.e., (i) the management device 2 is a variable device and the terminal device 4 is a target device, and (ii) the management device 2 is a target device and the terminal device 4 is a variable device. That is, the management device 2 may be configured to determine the antenna of the wireless communication with the terminal device 4 as the applicable antenna based on the learning information, and the terminal device 4 may be configured to determine the antenna of the wireless communication with the management device 2 as the applicable antenna.

However, the present modification is different from the Fifth Modification in that the rotation number of the inverter is used as the state information quantitatively indicating the vibration of the housing 200. Then, in connection with such point, the present modification is different from the Fifth Modification in that it is determined that the state of the housing 200 has changed when (i) the rotation number of the inverter becomes equal to or greater than a predetermined rotation number threshold value and (ii) the post-determination elapsed time becomes equal to or greater than the threshold time value.

For example, the management control unit 23 of the present modification may be configured to execute the determination process shown in FIG. 19. The determination process shown in FIG. 19 is almost the same as the determination process shown in FIG. 14. However, in FIG. 19, “acceleration” shown in FIG. 14 is replaced with “inverter rotation number”, and an “acceleration threshold value” is replaced with a “rotation number threshold value.” Further, for example, the terminal control unit 43 of the present modification may be configured to execute the determination process shown in FIG. 20. The determination process shown in FIG. 20 is almost the same as the determination process shown in FIG. 16. However, in FIG. 20, “acceleration” shown in FIG. 16 is replaced with “inverter rotation number”, and “acceleration threshold value” is replaced with “threshold rotation number”.

Also in the present modification, the same effects as that of the third embodiment are achievable. This scheme is effective in particular when change of the state of the housing 200 influences the transmission characteristics of the wireless communication signal transmitted by both of the management device 2 and the terminal device 4.

<Ninth Modification>

In the Eighth Modification, the management device 2 is configured to determine the applicable antenna based on the learning information, and subsequently, the plurality of terminal devices 4 are configured to sequentially determine the applicable antenna based on the learning information. However, the present disclosure is not limited to such configuration. In a Ninth Modification, the modification of the configuration may be that (i) the plurality of terminal devices 4 are configured to sequentially determine the applicable antenna based on the learning information, and then (ii) the management device 2 is configured to determine the applicable antenna based on the learning information.

In such case, the terminal device 4 may be configured to execute the determination process shown in FIG. 20. Then, for example, when the communication system 100 includes m pieces of the terminal device 4, the m-th terminal device 4 may be configured to transmit the update instruction to the management device 2 instead of performing the process of S285 as a process subsequent to S270. For example, in the determination process shown in FIG. 19, the management device 2 may wait until an update instruction is received after a positive determination is made in S120, and the process proceeds to S130 by a trigger when the update instruction is received, and the process of determining the applicable antenna may then be started.

4. Other Embodiments

Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the embodiments described above, and various modifications can be made to implement the present disclosure.

(4a) In the determination process, a selected power value when the communication quality is the best among the plurality of selected power values may be determined as the applicable antenna. The best communication quality includes, for example, a situation in which the BER takes the smallest value.

(4b) The test signal may be a wireless communication signal for causing at least the reception intensity of the test signal to be transmitted to the target device. For example, the target device may measure a reception intensity of the received wireless communication signal (i.e., the test signal), and may transmit the wireless communication signal (i.e., the test response signal) indicating the reception information including the reception intensity to the variable device. That is, the above-described test response signal needs to only include the reception intensity of the test signal, and needs not include the BER determination result.

The variable device may be configured to identify the BER corresponding to the reception intensity transmitted from the target device, based on a correspondence relationship between (i) a plurality of predetermined reception intensities and (ii) BERs obtained in advance by experiments or the like as shown in FIG. 21, for example. The information indicating the correspondence relationship may be stored in a memory included in the variable device. In such manner, it is possible to reduce the process load for the BER determination in the target device.

(4c) For example, in the above-described embodiments, the variable device is configured to determine whether or not the state of the housing 200 has changed based on the two pieces of the state information in the determination process. However, the present disclosure is not limited to such scheme. The variable device may be configured to determine whether the state of the housing 200 has changed based at least on one piece of the state information in the determination process.

That is, in the determination process, the variable device may determine whether or not the state of the housing 200 has changed based on one piece of the state information, or may determine the same based on plural pieces of (i.e., three or more pieces of) the state information. Also, a plurality of determination processes that determine the applicable antenna based on different state information may be performed in parallel.

(4d) For example, as shown in FIG. 22, a communication system 101 may include one management device 2 and a plurality of terminal devices 4, and the plurality of terminal devices 4 may respectively form plural groups each of which includes at least one terminal device 4. Then, the management device 2 may be configured to perform wireless communication with the terminal device(s) 4 in the respective groups by using respectively different frequency bands. For example, in FIG. 22, the plurality of groups includes a first group (a) and a second group (b). The management device 2 and the terminal device 4 included in the first group (a) may perform wireless communication in the first frequency band F1, and the management device 2 and the terminal device 4 included in the second group (b) may perform wireless communication in the second frequency band F2.

In such case, when transmitting the test signal in the determination process, the variable device may transmit the wireless communication signal in the frequency band used by the terminal device 4 which serves as a target device by using the selected antenna, for a determination of the applicable antenna. The information indicating the correspondence between the identification numbers of the respective terminal devices 4 and the frequency bands used by the respective terminal devices 4 is stored in advance in the memory provided in the variable device.

Thereby, even when the communication system 101 communicates with the terminal device 4 using a plurality of frequency bands, the same effects as that of the above-described embodiments are achievable.

(4e) The first antenna 211 and the second antenna 212 may have respectively different directivities. That is, for example, the directivity of the second antenna 212 of the antenna 21 may narrowly be oriented toward a position including at least one of the terminal devices 4 (i.e., at least one of the battery modules 3) of the communication system 100, as shown in FIG. 23. The direction of including at least one of the terminal devices 4 mentioned above may mean a direction of the directivity of the first antenna 211. The management device 2 shown in FIG. 23 has a strong directivity toward a direction that includes a position of the terminal device 4_5. However, the present disclosure is not limited to such configuration. The first and second antenna 211 and 212 may respectively have a strong/acute directivity to arbitrary directions.

(4f) For example, as shown in FIG. 24, the first antenna 211 of the antenna 21 may have a strong directivity toward a direction of at least one device 4, among the predetermined number of the plurality of the terminal devices 4 in the communication system 100. Further, the second antenna 212 may have a directivity of all directions.

(4g) The plurality of antennas 21 provided in the variable device (e.g., the management device 2) may be (i) one first antenna 211 and a plurality of second antennas 212, or may be (ii) a plurality of first antennas 211 and one second antenna 212. Further, the plurality of antennas 21 may include a plurality of first antennas 211 and a plurality of second antennas 212.

(4h) In the above-described embodiments, the communication system 100 is mounted on the vehicle V1, but the present disclosure is not limited to such scheme. For example, the communication system 100 may be mounted/used in various devices other than the vehicle V1, or may be used in connection with various devices.

(4i) The management control unit 23, the terminal control unit 43, and the method thereof according to the present disclosure may be realized by a dedicated computer configured by a processor and a memory programmed to perform one or more functions embodied by a computer program.

Alternatively, the management control unit 23, the terminal control unit 43, and the method thereof described in the present disclosure may be realized by a dedicated computer configured by a processor having one or more dedicated hardware logic circuits.

Alternatively, the management control unit 23, the terminal control unit 43, and the method thereof described in the present disclosure may be realized by one or more dedicated computers provided as a combination of (i) the processor and the memory programmed to perform one or more functions embodied by a computer program and (ii) the processor having one or more hardware logic circuits.

Further, the computer program may be stored in a computer-readable, non-transitory, tangible storage medium as instructions to be performed by such computer.

The method for realizing the functions of the respective units included in the management control unit 23 and the terminal control unit 43 does not necessarily have to include software, and all the functions may be realized by using one or more hardware devices.

(4j) Plural functions of one element in the above-described embodiments may be realized by plural elements or one function of one element may be realized by plural constituent elements. In addition, plural functions of plural elements may be realized by one element, or a single function realized by plural elements may be realized by one element. Moreover, part of the configuration of the above-mentioned embodiments may be omitted/dropped. Further, at least part of the configuration of one of the above-described embodiments may be added to or replaced with the configuration of the other of the above-described embodiments.

(4k) In addition to the management control unit 23, the terminal control unit 43, the CPU 26, the CPU 46, the management device 2, the terminal device 4, the battery module 3, the communication system 100, and the communication system 101 described above, the present disclosure may also be implemented in various forms such as a program for operating the management control unit 23 and the terminal control unit 43 to function, a non-transitory, substantive recording medium such as a semiconductor memory recording such program, a communication method realizing the above and the like. 

What is claimed is:
 1. A communication system comprising: at least one management device that performs wireless communication, and a plurality of terminal devices that respectively obtain information about at least one battery and respectively and wirelessly communicate with the at least one management device, wherein a variable device, which is one of the management device and the terminal device, includes: an antenna determination unit i) obtaining at least one state information indicating a state of a housing including the communication system, ii) determining whether the state of the housing is changed based on the obtained state information, and, upon determining that a change has occurred in the state of the housing, iii) determining one of a plurality of antennas provided in the variable device as an applicable antenna, the applicable antenna for wireless communication with a target device that is a communication target of the variable device and is other of the management device and the terminal device and with which the variable device applicable antenna achieves a predetermined communication quality by using the applicable antenna; and a transmission instruction unit instructing a wireless communication device provided in the variable device to perform the wireless communication with the target device by using the applicable antenna.
 2. The communication system according to claim 1, wherein the state information is information indicating a predetermined specific state, and the antenna determination unit is configured to determine that the state of the housing has changed when at least the state information is information indicating the specific state.
 3. The communication system according to claim 2, wherein the housing is mounted on a vehicle, the state information is information indicating, as the specific state, a state in which an ignition switch of the vehicle is turned ON, and the antenna determination unit determines that the state of the housing has changed, at least when the ignition switch of the vehicle is turned ON at least in the specific state.
 4. The communication system according to claim 1, wherein the state information is information quantitatively indicating a state of the housing, and the antenna determination unit determines whether the state of the housing has changed based at least on a comparison between the state information and a predetermined state threshold value.
 5. The communication system according to claim 4, wherein the state information is information quantitatively indicating vibration of the housing.
 6. The communication system according to claim 5, wherein the housing is mounted on a vehicle, the state information is acceleration of the vehicle, and the antenna determination unit determines that the state of the housing has changed when at least the acceleration of the vehicle is equal to or greater than an acceleration threshold value that indicates, as the state threshold value, a predetermined acceleration of the vehicle.
 7. The communication system according to claim 5, wherein the housing is mounted on a vehicle, the state information is a rotation number of an inverter included in the vehicle, and the antenna determination unit determines that the state of the housing has changed when at least the rotation number of the inverter is equal to or greater than a rotation number threshold value that indicates the predetermined rotation number of the inverter, which is the state threshold value.
 8. The communication system according to claim 4, wherein the state information is an elapsed time after a most recent determination of the applicable antenna, and the antenna determination unit determines that the state of the housing has changed when at least the elapsed time is equal to or greater than a threshold time value indicative of a predetermined time as the state threshold value.
 9. The communication system according to claim 4, wherein the antenna determination unit includes: a test transmission unit configured to transmit, when a predetermined execution condition is satisfied, a test signal sequentially from selected one of the plurality of antennas in the variable device to the target device that generates a communication index quantitatively indicative of the communication quality of the received test signal according to the test signal received thereby and transmits reception information including at least the communication index, and a test determination unit configured to obtain the communication index included in the reception information transmitted from the target device, and to determine the selected antenna as an applicable antenna when the communication index is within a predetermined range.
 10. The communication system according to claim 9, wherein the antenna determination unit further includes: a state obtaining unit configured to obtain the state information; a correspondence information obtaining unit configured to obtain at least one set of learning information including setting information that is the state information indicating a predetermined numerical value and a learning antenna that is a predetermined antenna associated with the setting information; a correspondence determination unit configured to determine whether or not the obtained state information is included within a predetermined range including the selection information which is one of the setting information included in the learning information when it is determined that the state of the housing has changed; and a selection determination unit configured to determine the learning antenna associated with the selection information as the applicable antenna when the obtained state information is within the predetermined range including the selection information, and wherein the test transmission unit transmits the test signal when the obtained state information is NOT within the predetermined range including the selection information based on the execution condition that the obtained state information is NOT within the predetermined range including the selection information, and the test determination unit determines the applicable antenna. 